package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.entity.RegistrationExample;
import java.util.List;
import com.san.hkhospital.entity.Registration;
import com.san.hkhospital.mapper.RegistrationMapper;
import com.san.hkhospital.service.RegistrationService;
/**
 * ClassName:RegistrationServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class RegistrationServiceImpl implements RegistrationService{

    @Resource
    private RegistrationMapper registrationMapper;

    @Override
    public long countByExample(RegistrationExample example) {
        return registrationMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RegistrationExample example) {
        return registrationMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer regId) {
        return registrationMapper.deleteByPrimaryKey(regId);
    }

    @Override
    public int insert(Registration record) {
        return registrationMapper.insert(record);
    }

    @Override
    public int insertSelective(Registration record) {
        return registrationMapper.insertSelective(record);
    }

    @Override
    public List<Registration> selectByExample(RegistrationExample example) {
        return registrationMapper.selectByExample(example);
    }

    @Override
    public Registration selectByPrimaryKey(Integer regId) {
        return registrationMapper.selectByPrimaryKey(regId);
    }

    @Override
    public int updateByExampleSelective(Registration record,RegistrationExample example) {
        return registrationMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Registration record,RegistrationExample example) {
        return registrationMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Registration record) {
        return registrationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Registration record) {
        return registrationMapper.updateByPrimaryKey(record);
    }

}
